import Vue from 'vue'
import Router from 'vue-router'
import testIndex from '@/homeindex.vue'
import home from '@/pages/home'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/test',
      name: 'test', // 哈希路由
      component: testIndex,
      children: [
        {
          path: 'home',
          name: 'home',
          component: home
        },
        {
          path: 'xxxxx',
          name: 'homefff',
          component: home
        }
      ]
    }
  ]
})
